package org.example.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author 李荣
 * @Date 2025/1/20
 * @Description
 */

@RestController
public class MessageSenderController {

    @Autowired
    private WebSocketController webSocketController;

    @GetMapping("/send-message")
    public String sendMessage() {
        //webSocketController.sendToTopic("Hello from REST controller!");
        return "Message sent!";
    }
}